<div id="formsuccess" style="display:none">{if isset($errors.status) && $errors.status == "success"}{$link}{/if}</div>
<form id="deleteForm" name="form" action="?module=backoffice&action=block_DeleteGeneric" method="post" class="nyroModal">
{t assignTo=title}Delete a folder{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$title}
<div id="modalContent">
	<table class="modalTable">
		<tr><th>{t 1=$folder->getLabel()}Are you sure you want to delete the folder "%s" ?{/t}</th></tr>
		{if isset($hasChild) && $hasChild}
		<tr><td>{icon name="warning.png"} {t}Warning : this folder is not empty !{/t}</td></tr>
		{/if}
        
        <input type="hidden" name="docLang" value="{$folder->getLang()}" />
        <input type="hidden" name="docId" value="{$folder->getUniqueId()}" />
        <input type="hidden" name="recursive" value="true" />
	</table>
</div>
{t assignTo=title}Delete{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" label=$title onClickParam=""}
</form>